"use strict";
const common_vendor = require("../../../common/vendor.js");
if (!Array) {
  const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  const _easycom_uni_th2 = common_vendor.resolveComponent("uni-th");
  const _easycom_uni_tr2 = common_vendor.resolveComponent("uni-tr");
  const _easycom_uni_td2 = common_vendor.resolveComponent("uni-td");
  const _easycom_uni_table2 = common_vendor.resolveComponent("uni-table");
  (_easycom_uni_icons2 + _easycom_uni_th2 + _easycom_uni_tr2 + _easycom_uni_td2 + _easycom_uni_table2)();
}
const _easycom_uni_icons = () => "../../../node-modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons.js";
const _easycom_uni_th = () => "../../../node-modules/@dcloudio/uni-ui/lib/uni-th/uni-th.js";
const _easycom_uni_tr = () => "../../../node-modules/@dcloudio/uni-ui/lib/uni-tr/uni-tr.js";
const _easycom_uni_td = () => "../../../node-modules/@dcloudio/uni-ui/lib/uni-td/uni-td.js";
const _easycom_uni_table = () => "../../../node-modules/@dcloudio/uni-ui/lib/uni-table/uni-table.js";
if (!Math) {
  (_easycom_uni_icons + _easycom_uni_th + _easycom_uni_tr + _easycom_uni_td + _easycom_uni_table)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "detail",
  setup(__props) {
    let Obj = {
      img: "https://picx.zhimg.com/v2-cee47e1466402036a68ea3a2abec5a5f_1440w.jpg",
      Name: "白切鸡",
      desc: "皮弹肉嫩 鲜甜可口",
      savedCount: 216,
      popular: 32.6,
      equipment: "明火自动翻炒锅",
      time_m: 32,
      time_s: 41,
      difficult: "简单"
      //简单 一般 较难 困难
    };
    let source = common_vendor.ref({
      //主食材
      ngredientsi: [
        {
          name: "三黄鸡",
          weight: 480
          //g
        }
      ],
      //佐料
      condiments: [
        {
          name: "清水",
          weight: 1440
        },
        {
          name: "大蒜",
          weight: 24
        },
        {
          name: "料酒",
          weight: 19
        },
        {
          name: "小葱",
          weight: 19
        },
        {
          name: "生抽",
          weight: 10
        },
        {
          name: "香醋",
          weight: 5
        },
        {
          name: "白糖",
          weight: 2
        }
      ]
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.t(common_vendor.unref(Obj).Name),
        b: common_vendor.t(common_vendor.unref(Obj).savedCount),
        c: common_vendor.t(common_vendor.unref(Obj).popular),
        d: common_vendor.t(common_vendor.unref(Obj).desc),
        e: common_vendor.t(common_vendor.unref(Obj).equipment),
        f: common_vendor.p({
          type: "fire"
        }),
        g: common_vendor.t(common_vendor.unref(Obj).time_m),
        h: common_vendor.t(common_vendor.unref(Obj).time_s),
        i: common_vendor.p({
          type: "flag"
        }),
        j: common_vendor.t(common_vendor.unref(Obj).difficult),
        k: common_vendor.p({
          type: "checkbox"
        }),
        l: common_vendor.p({
          width: "50",
          align: "left"
        }),
        m: common_vendor.p({
          width: "50",
          align: "center"
        }),
        n: common_vendor.p({
          width: "50",
          align: "center"
        }),
        o: common_vendor.f(common_vendor.unref(source).ngredientsi, (list, k0, i0) => {
          return {
            a: common_vendor.t(list.name),
            b: "1cecb806-9-" + i0 + "," + ("1cecb806-8-" + i0),
            c: "1cecb806-10-" + i0 + "," + ("1cecb806-8-" + i0),
            d: common_vendor.t(list.weight),
            e: "1cecb806-11-" + i0 + "," + ("1cecb806-8-" + i0),
            f: list.name,
            g: "1cecb806-8-" + i0 + ",1cecb806-3"
          };
        }),
        p: common_vendor.p({
          align: "right"
        }),
        q: common_vendor.p({
          width: "50",
          align: "left"
        }),
        r: common_vendor.p({
          width: "50",
          align: "center"
        }),
        s: common_vendor.p({
          width: "50",
          align: "center"
        }),
        t: common_vendor.f(common_vendor.unref(source).condiments, (list, k0, i0) => {
          return {
            a: common_vendor.t(list.name),
            b: "1cecb806-17-" + i0 + "," + ("1cecb806-16-" + i0),
            c: "1cecb806-18-" + i0 + "," + ("1cecb806-16-" + i0),
            d: common_vendor.t(list.weight),
            e: "1cecb806-19-" + i0 + "," + ("1cecb806-16-" + i0),
            f: list.name,
            g: "1cecb806-16-" + i0 + ",1cecb806-3"
          };
        }),
        v: common_vendor.p({
          align: "right"
        }),
        w: common_vendor.sr("table", "1cecb806-3"),
        x: common_vendor.p({
          emptyText: "暂无数据"
        })
      };
    };
  }
});
wx.createPage(_sfc_main);
